.class Llt/noframe/gpsfarmguide/views/FragmentSettings$8;
.super Ljava/lang/Object;
.source "FragmentSettings.java"

# interfaces
.implements Landroid/preference/Preference$OnPreferenceClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/views/FragmentSettings;->showSelected()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/views/FragmentSettings;)V
    .locals 0

    .line 316
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$8;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onPreferenceClick(Landroid/preference/Preference;)Z
    .locals 5

    .line 320
    new-instance p1, Llt/noframe/gpsfarmguide/dialogs/GpsCorrectionsChooserDialog;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$8;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    new-instance v1, Llt/noframe/gpsfarmguide/views/FragmentSettings$8$1;

    invoke-direct {v1, p0}, Llt/noframe/gpsfarmguide/views/FragmentSettings$8$1;-><init>(Llt/noframe/gpsfarmguide/views/FragmentSettings$8;)V

    const v2, 0x7f0c0063

    invoke-direct {p1, v0, v1, v2}, Llt/noframe/gpsfarmguide/dialogs/GpsCorrectionsChooserDialog;-><init>(Landroid/content/Context;Llt/noframe/gpsfarmguide/dialogs/GpsCorrectionsChooserDialog$OnSetListener;I)V

    .line 333
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$8;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    const v1, 0x7f1100c8

    invoke-virtual {v0, v1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Llt/noframe/gpsfarmguide/dialogs/GpsCorrectionsChooserDialog;->setTitle(Ljava/lang/CharSequence;)V

    .line 334
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$8;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$8;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    iget-object v2, v1, Llt/noframe/gpsfarmguide/views/FragmentSettings;->f:Ljava/text/DecimalFormat;

    invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    invoke-static {v1}, Llt/noframe/gpsfarmguide/utils/LastPickPrefrences;->getEquipmentWidth(Landroid/content/Context;)D

    move-result-wide v3

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$8;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    .line 335
    invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    invoke-static {v1}, Llt/noframe/gpsfarmguide/utils/Preferences;->getDeflectionUnit(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    .line 334
    invoke-static {v3, v4, v1}, Llt/noframe/gpsfarmguide/utils/Mathematics;->convertAccuracy(DLjava/lang/String;)D

    move-result-wide v3

    invoke-virtual {v2, v3, v4}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$8;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    .line 335
    invoke-virtual {v2}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v2

    invoke-static {v2}, Llt/noframe/gpsfarmguide/utils/Preferences;->getDeflectionUnit(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    .line 334
    invoke-virtual {p1, v0, v1, v2}, Llt/noframe/gpsfarmguide/dialogs/GpsCorrectionsChooserDialog;->show(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    const/4 p1, 0x0

    return p1
.end method
